public class Type_Conversion {

    // 类型转换, int -> String
    public static void main(String[] args) {
        int a = 101;
        String str = a + "";

        System.out.println(str);
        System.out.println(" ");
        String srt2 = String.valueOf(a);
        System.out.println(srt2);
        System.out.println(" ");

        // 类型转换, String -> int
        String str3 = "123";
        //包装类的意义
        // int a2 = Integer.valueOf(str3);
        int a2 = Integer.parseInt(str3);
        System.out.println(a2+1);
    }
}

